|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OfferingStrategy
negotiator.boaframework.offeringstrategy.other.ChoosingAllBids
public class ChoosingAllBids
This class implements an offering strategy which creates a list of possible bids and then offers them in descending order. If all bids are offered, then the last bid is repeated. This strategy has no straight-forward extension of using opponent models.
| Field Summary |
|---|
| Fields inherited from class negotiator.boaframework.OfferingStrategy |
|---|
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel |
| Constructor Summary | |
|---|---|
ChoosingAllBids()
Empty constructor used for reflexion. |
|
ChoosingAllBids(NegotiationSession negoSession,
OpponentModel model)
Constructor which can be used to create the agent without the GUI. |
|
| Method Summary | |
|---|---|
BidDetails |
determineNextBid()
Returns the next bid in the sorted array of bids. |
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent |
void |
init(NegotiationSession domainKnow,
OpponentModel model,
OMStrategy omStrat,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the offering strategy. |
| Methods inherited from class negotiator.boaframework.OfferingStrategy |
|---|
endSession, getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChoosingAllBids()
public ChoosingAllBids(NegotiationSession negoSession,
OpponentModel model)
negoSession - reference to the negotiationsession objectmodel - reference to the opponent model| Method Detail |
|---|
public void init(NegotiationSession domainKnow,
OpponentModel model,
OMStrategy omStrat,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
throws java.lang.Exception
OfferingStrategy
init in class OfferingStrategydomainKnow - state of the negotiation.model - opponent model which may be used.omStrat - opponent model strategy which may be used.parameters - optional parameters for the offering strategy.
java.lang.Exception - if the offering strategy fails to initialize.public BidDetails determineNextBid()
determineNextBid in class OfferingStrategypublic BidDetails determineOpeningBid()
OfferingStrategy
determineOpeningBid in class OfferingStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||